home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-MIPS / IRQ.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  1KB  |  40 lines

  1. /* $Id: irq.h,v 1.4 1998/05/28 03:18:13 ralf Exp $
  2.  *
  3.  * This file is subject to the terms and conditions of the GNU General Public
  4.  * License.  See the file "COPYING" in the main directory of this archive
  5.  * for more details.
  6.  *
  7.  * Copyright (C) 1994 by Waldorf GMBH, written by Ralf Baechle
  8.  * Copyright (C) 1995, 1996, 1997, 1998 by Ralf Baechle
  9.  */
  10. #ifndef __ASM_MIPS_IRQ_H
  11. #define __ASM_MIPS_IRQ_H
  12.  
  13. /*
  14.  * Actually this is a lie but we hide the local device's interrupts ...
  15.  */
  16. #define NR_IRQS 64
  17.  
  18. #define TIMER_IRQ 0
  19.  
  20. extern int (*irq_cannonicalize)(int irq);
  21.  
  22. struct irqaction;
  23. extern int setup_x86_irq(int irq, struct irqaction * new);
  24. extern void disable_irq(unsigned int);
  25. extern void enable_irq(unsigned int);
  26.  
  27. extern unsigned int local_irq_count[];
  28.  
  29. #ifdef __SMP__
  30. #error Send superfluous SMP boxes to ralf@uni-koblenz.de
  31. #else
  32. #define irq_enter(cpu, irq)     (++local_irq_count[cpu])
  33. #define irq_exit(cpu, irq)      (--local_irq_count[cpu])
  34. #endif
  35.  
  36. /* Machine specific interrupt initialization  */
  37. extern void (*irq_setup)(void);
  38.  
  39. #endif /* __ASM_MIPS_IRQ_H */
  40.